<?php
use yii\widgets\LinkPager;

$request = Yii::$app->getRequest();
?>

<div class="row">
    <table class="table table-bordered mt20">
        <thead>
        <tr>
            <th>美容师</th>
            <th>电话</th>
        </tr>
        </thead>

        <tbody>

        <?php foreach($employeeList as $employee): ?>
        <tr style="cursor: pointer;" avg_consume_amount="<?= $request->get('avg_consume_amount', '0') ?>" c_id="<?= $request->get('c_id', 0); ?>" employee_id="<?= $employee['employee_id'] ?>" employee_name="<?= $employee['employee_name'] ?>" employee_mobile="<?= $employee['employee_mobile'] ?>">
            <td class="name"><?= $employee['employee_name'] ?></td>
            <td><?= $employee['employee_mobile'] ?></td>
        </tr>
        <?php endforeach; ?>

        </tbody>
    </table>
    <div class="page" style="text-align:center;">
        <?= LinkPager::widget([
            'pagination' => $page,
            // 'hideOnSinglePage' => true
        ]); ?>
    </div>

</div>


<?php $this->beginBlock('js_index_end') ?>


<?php $this->endBlock() ?>
<?php $this->registerJs($this->blocks['js_index_end'], $this::POS_END); ?>

<?php $this->registerJsFile("@web/system/server/employee.js",['position'=>$this::POS_END]);?>